package com.ccsoft.atools.controller;

import com.ccsoft.atools.model.SysUser;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName:LoginController
 * @Description:TODO
 * @Author:chanchaw
 * @Date:2019-11-29 13:16
 * @Version:1.0
 **/
@CrossOrigin
@RestController
@RequestMapping("/login")
public class LoginController {

    @PostMapping("/in")
    public void login(@RequestBody SysUser sysUser) {
        System.out.println("登录请求传递来的数据是：");
        System.out.println(sysUser);
        System.out.println("处理登录请求...");
    }

    @PostMapping("/out")
    public void logout() {
        System.out.println("处理登出请求...");
    }
}
